Levoric Learn LOGO

Levoric Learn




HTML Tutorial

Introduction <pre> tag


The <pre> HTML part shows text that should be shown like it is written in the HTML file. The words usually shown using a type of font that doesn't change size, or one where all letters are the same width. Space inside this part is shown as it was typed.

In HTML, the <pre> part is for "text that looks same as in programming." It's used to show text just like how it appears when making a website.
This keeps all spaces and line breaks too! The main job of the <pre> part is to show words in a space-equal style, making it good for showing code parts or any text where how they look matters.

The <pre> tag sets the text as preformatted. Text in a <pre> part is shown using the same small font, and it keeps spaces as well as line splits.
The words in the HTML code will show up exactly as they are written.


HTML Example

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset ="UTF-8">
<!--This our levoriclearn website comment-->
<title>Levoric | HTML Fundamentle Tutorial</title>
</head>
<body>
<!--Write your content here levoriclearn top degree online and program-->
<pre>
This is levoriclearn
learn free programming and tutorials

</pre>
<!--Write your content here levoriclearn top degree online and program-->
</body>
</html>


output


    This is levoriclearn
    learn free programming and tutorials
    




Support Browser
Element LevoricLearn-education-top-university-degree LevoricLearn-education-top-university-degree LevoricLearn-education-top-university-degree LevoricLearn-education-top-university-degree
<pre> Yes Yes Yes Yes Yes